cmake_minimum_required(VERSION 2.6)

set(HEADERS
	include/WiiCIS.h
	include/WiiCISPrivateInclude.h
	include/WiiCISPublicInclude.h
	include/WiiCISWiimote.h
	)

set(SOURCES
	src/WiiCIS.cpp
	src/WiiCISWiimote.cpp
	)

include_directories (include ../WiiCISIO/include)

add_library(WiiCIS SHARED ${HEADERS} ${SOURCES})
set_target_properties(WiiCIS PROPERTIES RUNTIME_OUTPUT_DIRECTORY .. SOVERSION 1 COMPILE_DEFINITIONS WIICIS_COMPILE_LIB)
target_link_libraries(WiiCIS WiiCISIO)

install(TARGETS WiiCIS
   DESTINATION lib
)

install(FILES ${HEADERS} 
   DESTINATION include/WiiCIS
)
